Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Mentions to draft messages #WPB-12062 #3687

Merged
merged 6 commits into from
Dec 13, 2024

Conversation

borichellow
Copy link
Contributor

@borichellow borichellow commented Nov 29, 2024

TaskWPB-12062 [Android] add mentions to draft messages

What's new in this PR?

Issues

As a user when I type a message that have a mention and i go back to the conversation later to send the draft it should be sent with the mention.

Causes (Optional)

Mentions are saved in draft but never used.

Solutions

Check if draft contains mentions and use it if so

@borichellow borichellow self-assigned this Nov 29, 2024
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Nov 29, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 45.56%. Comparing base (e6d8091) to head (926b0b1).

Files with missing lines Patch % Lines
.../messagecomposer/state/MessageCompositionHolder.kt 25.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3687      +/-   ##
===========================================
- Coverage    45.57%   45.56%   -0.01%     
===========================================
  Files          476      476              
  Lines        16105    16108       +3     
  Branches      2736     2736              
===========================================
  Hits          7340     7340              
- Misses        7998     8001       +3     
  Partials       767      767              
Files with missing lines Coverage Δ
...essagecomposer/state/MessageComposerStateHolder.kt 66.66% <ø> (ø)
.../messagecomposer/state/MessageCompositionHolder.kt 28.32% <25.00%> (-0.50%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6d8091...926b0b1. Read the comment docs.

Copy link
Contributor

Built wire-android-staging-compat-pr-3687.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3687.apk is available for download

Copy link
Contributor

Built wire-android-staging-compat-pr-3687.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3687.apk is available for download

)
}

if (draftMessageComposition.selectedMentions.isNotEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: shouldn't that have its own LaunchedEffect to be executed every time when draftMessageComposition.selectedMentions changes? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is not necessary so far, as selectedMentions is updated only with draftText (in MessageDraftViewModel.loadMessageDraft())

@borichellow borichellow requested a review from saleniuk December 4, 2024 12:39
@MohamadJaara
Copy link
Member

please only merge in 4.11

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Built wire-android-staging-compat-pr-3687.apk is available for download

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Built wire-android-dev-debug-pr-3687.apk is available for download

@yamilmedina yamilmedina dismissed MohamadJaara’s stale review December 10, 2024 13:41

After the switcharoo, we can merge to develop already

Copy link
Contributor

Built wire-android-staging-compat-pr-3687.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3687.apk is available for download

@borichellow borichellow added this pull request to the merge queue Dec 11, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@borichellow borichellow added this pull request to the merge queue Dec 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2024
@borichellow borichellow added this pull request to the merge queue Dec 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2024
@borichellow borichellow added this pull request to the merge queue Dec 13, 2024
Merged via the queue into develop with commit 9e75446 Dec 13, 2024
12 of 13 checks passed
@borichellow borichellow deleted the feat/add_mentions_to_draft_messages branch December 13, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants